package com.kkb;


import java.util.Map;
import java.util.function.Function;
import java.util.stream.Stream;


/**
 * @Author kkb
 * @Version 1.0
 * @Date 2024/8/1 11:02
 * @Description Document 基类
 */

public interface Document {
    Void put(String key, Object value);

    Object get(String key);

    <T> Stream<T> children(String key, Function<Map<String, Object>, T> constructor);
}
